﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///入库单明细
    ///</summary>
    [SugarTable("DBO.t_ReceivingOrderDetail")]
    public partial class t_ReceivingOrderDetail
    {
        public t_ReceivingOrderDetail()
        {


        }
        /// <summary>
        /// Desc:明细Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:入库单编号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OrderSN { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BillType { get; set; }

        /// <summary>
        /// Desc:库房编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseCode { get; set; }

        /// <summary>
        /// Desc:库房名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseName { get; set; }

        /// <summary>
        /// Desc:库区编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AreaCode { get; set; }

        /// <summary>
        /// Desc:库区名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AreaName { get; set; }

        /// <summary>
        /// Desc:物料Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? MaterialId { get; set; }

        /// <summary>
        /// Desc:物料号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialCode { get; set; }

        /// <summary>
        /// Desc:物料名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialName { get; set; }

        /// <summary>
        /// Desc:物料类型编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialTypeCode { get; set; }

        /// <summary>
        /// Desc:物料类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialTypeName { get; set; }

        /// <summary>
        /// Desc:实际接收数量：为基本单位的数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? ReceivedQTY { get; set; }

        /// <summary>
        /// Desc:期待数量：即订单数量，为基本单位的数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? QTY { get; set; }

        /// <summary>
        /// Desc:码垛完成的数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? StackedQTY { get; set; }

        /// <summary>
        /// Desc:包装完成的数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? PackagedQTY { get; set; }

        /// <summary>
        /// Desc:总包装数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? PackQTY { get; set; }

        /// <summary>
        /// Desc:物料基本单位Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? UnitId { get; set; }

        /// <summary>
        /// Desc:物料基本单位
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? UnitName { get; set; }

        /// <summary>
        /// Desc:ERP物料号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ERPCode { get; set; }

        /// <summary>
        /// Desc:批次号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BatchNO { get; set; }

        /// <summary>
        /// Desc:有效期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ExpireDate { get; set; }

        /// <summary>
        /// Desc:质检日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? QADate { get; set; }

        /// <summary>
        /// Desc:生产日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ProductDate { get; set; }

        /// <summary>
        /// Desc:生产厂家
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ProduceFactory { get; set; }

        /// <summary>
        /// Desc:供应商Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SupplierId { get; set; }

        /// <summary>
        /// Desc:供应商
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SupplierName { get; set; }

        /// <summary>
        /// Desc:出厂日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? OutFactoryDate { get; set; }

        /// <summary>
        /// Desc:货主Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? OwnerId { get; set; }

        /// <summary>
        /// Desc:货主
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OwnerName { get; set; }

        /// <summary>
        /// Desc:最早入库时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? InStarDate { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Remark { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:DateTime.Now
        /// Nullable:False
        /// </summary>           
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? MaterialKeyId { get; set; }

        /// <summary>
        /// Desc:质量状态：0-待检；1-合格；2-不合格；
        /// Default:1
        /// Nullable:False
        /// </summary>           
        public int QualityState { get; set; }

        /// <summary>
        /// Desc:状态：0-新建;1-已启动;2-作业中;3-已完成;4-强制完成;5-暂停;6-失效；7-异常
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int Status { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialImg { get; set; }

        /// <summary>
        /// Desc:逻辑分区编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? LogicalPartCode { get; set; }

        /// <summary>
        /// Desc:逻辑分区名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? LogicalPartName { get; set; }

        /// <summary>
        /// Desc:物料凭证号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MBLNR { get; set; }

        /// <summary>
        /// Desc:部门编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? DeptCode { get; set; }

        /// <summary>
        /// Desc:部门名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? DeptName { get; set; }

        /// <summary>
        /// Desc:合同号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ContractNO { get; set; }

        /// <summary>
        /// Desc:单据来源类型：0-手动建单；1-ERP;2-MES;3-SAP
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? SourceType { get; set; }

        /// <summary>
        /// Desc:创建人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:修改人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ModifyUserId { get; set; }

        /// <summary>
        /// Desc:修改人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ModifyUserName { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// Desc:提交时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? SubmitDate { get; set; }

        /// <summary>
        /// Desc:提交人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SubmitUserId { get; set; }

        /// <summary>
        /// Desc:提交人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SubmitUserName { get; set; }

        /// <summary>
        /// Desc:审核人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? AuditUserId { get; set; }

        /// <summary>
        /// Desc:审核人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AuditUserName { get; set; }

        /// <summary>
        /// Desc:审核时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? AuditDate { get; set; }

        /// <summary>
        /// Desc:物料凭证年度
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MJAHR { get; set; }

        /// <summary>
        /// Desc:物料凭证行项目
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ZEILE { get; set; }

        /// <summary>
        /// Desc:采购订单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PurOrderNO { get; set; }

        /// <summary>
        /// Desc:采购订单行号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PurOrderLineNO { get; set; }

        /// <summary>
        /// Desc:采购订单行项目类型：0-无；1-L外协；2-U转储;3-正常采购
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? PurOrderLineType { get; set; }

        /// <summary>
        /// Desc:生产订单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ProOrderNO { get; set; }

        /// <summary>
        /// Desc:外协需求跟踪号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OutOrderNO { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? RefInVoucherId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? WarehouseId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ReceivingBillDetailId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ReceivingBillId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? TotalPrice { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? Price { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BatchNoExplain { get; set; }

    }
}
